<?php
/**
 * bs多规格sku商城系统
 * ============================================================================
 * 版权所有 2024-2099 wltx666.com，并保留所有权利。
 * 网站地址: https://wltx666.com
 * ============================================================================
 * Author: 草上飞
 * Email: wltx@alipay168.cn
 * QQ: 2719875001
 * Date: 2024/12/25
 * 描述:
 */

namespace app\api\controller;

use app\result\goods\GoodsCommentResult;
use think\App;

class Comment extends BaseIndex
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new GoodsCommentResult();
    }

    public function list()
    {
        data_exit_json($this->objResult->api_list($this->user_id, $this->param));
    }

    public function detail()
    {
        data_exit_json($this->objResult->api_detail($this->user_id, $this->param));
    }

    public function ready()
    {
        data_exit_json($this->objResult->comment_ready($this->user_id, $this->param));
    }

    public function create()
    {
        data_exit_json($this->objResult->action($this->user_id, $this->param));
    }

    public function delete()
    {
        data_exit_json($this->objResult->api_delete($this->user_id, $this->param));
    }
}
